import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/employee_list.g.dart';

@JsonSerializable()
class EmployeeEntity {
  int admin = 0;
  String userId = '';
  String userName = '';
  bool select = false;

  EmployeeEntity();

  factory EmployeeEntity.fromJson(Map<String, dynamic> json) => $EmployeeEntityFromJson(json);

  Map<String, dynamic> toJson() => $EmployeeEntityToJson(this);

  @override
  String toString() {
    return 'userName:$userName';
  }
}
